package com.zy.config;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author: 13417
 * @create: 2024/5/10 00:03:46
 * @description:
 */
public class WebUtils {

    public static String renderString(HttpServletResponse response, String str) {
        try {
            response.setStatus(200);
            response.setContentType("application/json");
            response.setCharacterEncoding("utf-8");
            response.getWriter().print(str);
        } catch (IOException e) {
            e.printStackTrace();
        }
        return null;
    }
}
